<!DOCTYPE html>
<html>
<head>
  <title><%= GlobalSetting[:sns_name] %></title>
  <%= stylesheet_link_tag "web-app-theme/base",
                             "web-app-theme/themes/#{GlobalSetting['sns_theme'] || 'reidb-greenish'}/style",
                             "web-app-theme/override" %>
  <%= stylesheet_link_tag "application" %>
  <%= stylesheet_link_tag "prototype-window/themes/default" %>
  <%= javascript_include_tag :defaults %>
  <%= javascript_include_tag 'prototype-window/window' %>
  <%= javascript_include_tag 'prototype-window/window_effects' %>
  <%= javascript_include_tag 'message_destinations' %>
  <%= csrf_meta_tag %>
</head>
<body>
  <div id="container">
    <div id="wrapper" class="wat-cf">
      <div class="flash">
        <% flash.each do |type, message| -%>
          <div class="message <%= type %>">
            <p><%= message %></p>
          </div>
        <% end -%>
      </div>
      <div id="main">
        <%= yield %>
      </div>
    </div>
  </div>
</body>
</html>
